package com.sasis.model;
// Generated 2007-8-7 10:00:49 by Hibernate Tools 3.1.0.beta4

import java.sql.Date;
import java.sql.Timestamp;


/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="VIP_APPEAL"
 *     
 */

public class VipAppeal extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    private Integer id;
    private Integer vipInfoId;
    private Integer vipServiceSheetId;
    private Timestamp appealDate;
    private String appealContent;
    private Integer operator;
    private Timestamp operateDate;
    private String flightNum;
    private String  userName;


    // Constructors

    public String getUserName() {
		return userName;
	}


	public void setUserName(String userName) {
		this.userName = userName;
	}


	public String getFlightNum() {
		return flightNum;
	}


	public void setFlightNum(String flightNum) {
		this.flightNum = flightNum;
	}


	/** default constructor */
    public VipAppeal() {
    }

    
    /** full constructor */
    public VipAppeal(Integer vipInfoId, Integer vipServiceSheetId, Timestamp appealDate, String appealContent, Integer operator, Timestamp operateDate) {
        this.vipInfoId = vipInfoId;
        this.vipServiceSheetId = vipServiceSheetId;
        this.appealDate = appealDate;
        this.appealContent = appealContent;
        this.operator = operator;
        this.operateDate = operateDate;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="VIP_INFO_ID"
     *             length="22"
     *         
     */

    public Integer getVipInfoId() {
        return this.vipInfoId;
    }
    
    public void setVipInfoId(Integer vipInfoId) {
        this.vipInfoId = vipInfoId;
    }
    /**       
     *      *            @hibernate.property
     *             column="VIP_SERVICE_SHEET_ID"
     *             length="22"
     *         
     */

    public Integer getVipServiceSheetId() {
        return this.vipServiceSheetId;
    }
    
    public void setVipServiceSheetId(Integer vipServiceSheetId) {
        this.vipServiceSheetId = vipServiceSheetId;
    }
    /**       
     *      *            @hibernate.property
     *             column="APPEAL_DATE"
     *             length="7"
     *         
     */

    public Timestamp getAppealDate() {
        return this.appealDate;
    }
    
    public void setAppealDate(Timestamp appealDate) {
        this.appealDate = appealDate;
    }
    /**       
     *      *            @hibernate.property
     *             column="APPEAL_CONTENT"
     *             length="1024"
     *         
     */

    public String getAppealContent() {
        return this.appealContent;
    }
    
    public void setAppealContent(String appealContent) {
        this.appealContent = appealContent;
    }
    /**       
     *      *            @hibernate.property
     *             column="OPERATOR"
     *             length="22"
     *         
     */

    public Integer getOperator() {
        return this.operator;
    }
    
    public void setOperator(Integer operator) {
        this.operator = operator;
    }
    /**       
     *      *            @hibernate.property
     *             column="OPERATE_DATE"
     *             length="7"
     *         
     */

    public Timestamp getOperateDate() {
        return this.operateDate;
    }
    
    public void setOperateDate(Timestamp operateDate) {
        this.operateDate = operateDate;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("vipInfoId").append("='").append(getVipInfoId()).append("' ");			
      buffer.append("vipServiceSheetId").append("='").append(getVipServiceSheetId()).append("' ");			
      buffer.append("appealDate").append("='").append(getAppealDate()).append("' ");			
      buffer.append("appealContent").append("='").append(getAppealContent()).append("' ");			
      buffer.append("operator").append("='").append(getOperator()).append("' ");			
      buffer.append("operateDate").append("='").append(getOperateDate()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof VipAppeal) ) return false;
		 VipAppeal castOther = ( VipAppeal ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getVipInfoId()==castOther.getVipInfoId()) || ( this.getVipInfoId()!=null && castOther.getVipInfoId()!=null && this.getVipInfoId().equals(castOther.getVipInfoId()) ) )
 && ( (this.getVipServiceSheetId()==castOther.getVipServiceSheetId()) || ( this.getVipServiceSheetId()!=null && castOther.getVipServiceSheetId()!=null && this.getVipServiceSheetId().equals(castOther.getVipServiceSheetId()) ) )
 && ( (this.getAppealDate()==castOther.getAppealDate()) || ( this.getAppealDate()!=null && castOther.getAppealDate()!=null && this.getAppealDate().equals(castOther.getAppealDate()) ) )
 && ( (this.getAppealContent()==castOther.getAppealContent()) || ( this.getAppealContent()!=null && castOther.getAppealContent()!=null && this.getAppealContent().equals(castOther.getAppealContent()) ) )
 && ( (this.getOperator()==castOther.getOperator()) || ( this.getOperator()!=null && castOther.getOperator()!=null && this.getOperator().equals(castOther.getOperator()) ) )
 && ( (this.getOperateDate()==castOther.getOperateDate()) || ( this.getOperateDate()!=null && castOther.getOperateDate()!=null && this.getOperateDate().equals(castOther.getOperateDate()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getVipInfoId() == null ? 0 : this.getVipInfoId().hashCode() );
         result = 37 * result + ( getVipServiceSheetId() == null ? 0 : this.getVipServiceSheetId().hashCode() );
         result = 37 * result + ( getAppealDate() == null ? 0 : this.getAppealDate().hashCode() );
         result = 37 * result + ( getAppealContent() == null ? 0 : this.getAppealContent().hashCode() );
         result = 37 * result + ( getOperator() == null ? 0 : this.getOperator().hashCode() );
         result = 37 * result + ( getOperateDate() == null ? 0 : this.getOperateDate().hashCode() );
         return result;
   }   





}
